package com.boot.system.wrapper;

import cn.hutool.core.bean.BeanUtil;
import com.boot.framework.common.BaseEntityWrapper;
import com.boot.system.dto.SysParamsDTO;
import com.boot.system.entity.SysParamsEntity;

/**
 * @author yangfan
 * @date 2024/2/6
 * @Description
 */
public class SysParamsWrapper extends BaseEntityWrapper<SysParamsEntity, SysParamsDTO> {
    public static SysParamsWrapper build() {
        return new SysParamsWrapper();
    }
    @Override
    public SysParamsDTO entityDTO(SysParamsEntity entity) {
        return BeanUtil.copyProperties(entity, SysParamsDTO.class);
    }

    @Override
    public SysParamsEntity dtoEntity(SysParamsDTO dto) {
        return BeanUtil.copyProperties(dto, SysParamsEntity.class);
    }
}
